Matthias Clasen [Tue, 27 Jan 2009 01:22:29 +0000 (01:22 +0000)]
Add bug ref
svn path=/trunk/; revision=22226
Matthias Clasen [Tue, 27 Jan 2009 00:25:21 +0000 (00:25 +0000)]
Block the previous action when calling reset() to prevent accidental
* gtk/gtkactivatable.c (gtk_activatable_do_set_related_action):
Block the previous action when calling reset() to prevent
accidental activation of the previous action.
* gtk/gtkaction.c (gtk_action_activate): Don't compare booleans.
* gtk/gtktoggleaction.c (gtk_toggle_action_set_active): Remove
extraneous braces.
svn path=/trunk/; revision=22225
Bastien Nocera [Mon, 26 Jan 2009 20:47:00 +0000 (20:47 +0000)]
Bug 569240 - Crasher when using markers
2009-01-26 Bastien Nocera <hadess@hadess.net>
Bug 569240 - Crasher when using markers
* gtk/gtkrange.c (gtk_range_destroy): Avoid crashes when destroying
a GtkRange with markers
svn path=/trunk/; revision=22224
Richard Hult [Mon, 26 Jan 2009 20:31:18 +0000 (20:31 +0000)]
Bug 566628 – gdk_display_close always asserts on win32 and quartz
2009-01-26 Richard Hult <richard@imendio.com>
Bug 566628 – gdk_display_close always asserts on win32 and quartz
* gdk/quartz/gdkdisplay-quartz.c
(_gdk_windowing_set_default_display): Copy fix for bug #566628
from the win32 backend: Allow also a NULL parameter in the
g_assert().
svn path=/trunk/; revision=22223
Matthias Clasen [Mon, 26 Jan 2009 03:01:01 +0000 (03:01 +0000)]
More action-related fixes
svn path=/trunk/; revision=22218
Matthias Clasen [Sun, 25 Jan 2009 23:54:27 +0000 (23:54 +0000)]
Set draw-as-radio to TRUE
svn path=/trunk/; revision=22217
Claudio Saavedra [Sun, 25 Jan 2009 11:14:46 +0000 (11:14 +0000)]
Bug 563576 – Dummy po files break the build
2009-01-25 Claudio Saavedra <csaavedra@igalia.com>
Bug 563576 – Dummy po files break the build
* ast.po: copy contact data from po/ast.po, patch from Adrian Bunk
svn path=/trunk/; revision=22216
Jorge Gonzalez Gonzalez [Sun, 25 Jan 2009 09:30:43 +0000 (09:30 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22215
Matthias Clasen [Sun, 25 Jan 2009 03:38:27 +0000 (03:38 +0000)]
Revert changes for bug 567124. Instead of trying to avoid
setting up the im context before the widget is realized, just
reset it when the client window is set.
* gtk/gtkimmulticontext.c: Reset the slave when a client window
is set.
* gtk/gtkimmodule.c
* gtk/gtktextview.c: Revert changes for bug 567124.
svn path=/trunk/; revision=22214
Claudio Saavedra [Sat, 24 Jan 2009 22:54:53 +0000 (22:54 +0000)]
Use gtk-doc syntax to refer to properties in the docstrings.
2009-01-25 Claudio Saavedra <csaavedra@igalia.com>
* gtk/gtktreeview.c: Use gtk-doc syntax to refer to properties in
the docstrings.
svn path=/trunk/; revision=22213
Claudio Saavedra [Sat, 24 Jan 2009 22:42:05 +0000 (22:42 +0000)]
More docstrings improvements regarding reorderable property.
2009-01-25 Claudio Saavedra <csaavedra@igalia.com>
* gtk/gtkiconview.c: More docstrings improvements
regarding reorderable property.
svn path=/trunk/; revision=22212
Claudio Saavedra [Sat, 24 Jan 2009 22:22:35 +0000 (22:22 +0000)]
Bug 559420 – gtk_icon_view_enable_model_drag_[source|dest] docs wrt.
2009-01-24 Claudio Saavedra <csaavedra@igalia.com>
Bug 559420 – gtk_icon_view_enable_model_drag_[source|dest] docs
wrt. reorderable property
* gtk/gtkiconview.c: Improve docstrings regarding reorderable
property. Based on a patch by Björn Lindqvist.
svn path=/trunk/; revision=22211
Matthias Clasen [Sat, 24 Jan 2009 22:00:07 +0000 (22:00 +0000)]
Fallback from stock ids to icon names like the old GtkAction code did
svn path=/trunk/; revision=22210
Matthias Clasen [Sat, 24 Jan 2009 21:53:29 +0000 (21:53 +0000)]
Test icon names in actions with toolitems
svn path=/trunk/; revision=22209
Matthias Clasen [Sat, 24 Jan 2009 21:29:36 +0000 (21:29 +0000)]
Don't update blank cursors
svn path=/trunk/; revision=22208
Claudio Saavedra [Sat, 24 Jan 2009 21:00:12 +0000 (21:00 +0000)]
improve ::search-column property description.
2009-01-24 Claudio Saavedra <csaavedra@igalia.com>
* gtk/gtktreeview.c: (gtk_tree_view_class_init):
improve ::search-column property description.
svn path=/trunk/; revision=22207
Jorge Gonzalez Gonzalez [Sat, 24 Jan 2009 20:19:10 +0000 (20:19 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22206
Andre Klapper [Sat, 24 Jan 2009 17:49:54 +0000 (17:49 +0000)]
Fix bug #568859.
2009-01-24 Andre Klapper <
a9016009@gmx.de>
* de.po: Fix bug #568859.
svn path=/trunk/; revision=22205
Matthias Clasen [Fri, 23 Jan 2009 23:05:41 +0000 (23:05 +0000)]
bump version
svn path=/trunk/; revision=22204
Matthias Clasen [Fri, 23 Jan 2009 23:03:59 +0000 (23:03 +0000)]
2.15.1
svn path=/trunk/; revision=22202
Matthias Clasen [Fri, 23 Jan 2009 17:51:15 +0000 (17:51 +0000)]
Doc fixes
svn path=/trunk/; revision=22201
Matthias Clasen [Fri, 23 Jan 2009 17:48:08 +0000 (17:48 +0000)]
Add GtkActivatableIface, too
svn path=/trunk/; revision=22200
Matthias Clasen [Fri, 23 Jan 2009 17:29:11 +0000 (17:29 +0000)]
Fix the section docs
svn path=/trunk/; revision=22199
Matthias Clasen [Fri, 23 Jan 2009 17:10:08 +0000 (17:10 +0000)]
Fix pltcheck issues
svn path=/trunk/; revision=22198
Jorge Gonzalez Gonzalez [Fri, 23 Jan 2009 16:02:23 +0000 (16:02 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22197
Matthias Clasen [Fri, 23 Jan 2009 15:46:12 +0000 (15:46 +0000)]
Updates
svn path=/trunk/; revision=22196
Matthias Clasen [Fri, 23 Jan 2009 15:15:28 +0000 (15:15 +0000)]
i Bug 560228 – Add "action-controller" property to GtkWidgetClass
Rework the way actions and proxies interact, to make the
interaction less ad hoc, more extensible, and better suited
for support in GUI builders like glade.
To be used as a proxy, a widget must now implement the
GtkActivatable interface, and GtkActivatable implementations
are responsible for syncing their appearance with the action
and for activating the action.
All the widgets that are commonly used as proxies implement
GtkActivatable now.
Patch by Tristan van Berkom.
* gtk/gtkactivatable.[hc]: The GtkActivatable interface.
* gtk/gtkbutton.c:
* gtk/gtktogglebutton.c:
* gtk/gtktoolitem.c:
* gtk/gtktoolbutton.c:
* gtk/gtktoggletoolbutton.c:
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkimagemenuitem.c:
* gtk/gtkradiomenuitem.c:
* gtk/gtkrecentchooserprivate.h:
* gtk/gtkrecentchooser.c:
* gtk/gtkrecentchooserdefault.c:
* gtk/gtkrecentchoosermenu.c: Implement GtkActivatable.
* gtk/gtkaction.[hc]: Move appearance synchronization to
GtkActivatable implementations.
* gtk/gtkradioaction.c:
* gtk/gtkrecentaction.c:
* gtk/gtktoggleaction.c:
* gtk/gtkactiongroup.c: Adapt.
* gtk/gtk.h: Include gtkactivatable.h
* gtk/gtk.symbols: Add new functions
svn path=/trunk/; revision=22195
Matthias Clasen [Fri, 23 Jan 2009 06:07:03 +0000 (06:07 +0000)]
Additions
svn path=/trunk/; revision=22194
Matthias Clasen [Fri, 23 Jan 2009 06:04:05 +0000 (06:04 +0000)]
Don't set up im stuff if the widget is not realized.
* gtk/gtktextview.c: Don't set up im stuff if the widget
is not realized.
* gtk/gtkimmodule.c: Assert that we have a window.
svn path=/trunk/; revision=22193
Matthias Clasen [Fri, 23 Jan 2009 06:00:44 +0000 (06:00 +0000)]
Skip Desktop if it equals the home folder
svn path=/trunk/; revision=22192
Matthias Clasen [Fri, 23 Jan 2009 05:57:36 +0000 (05:57 +0000)]
Keep GtkPlug in sync with the global list of toplevels.
Patch by Federico Mena Quintero
* gtk/gtkwindow.h:
* gtk/gtkwindow.c (_gtk_window_set_is_toplevel): New internal
function used when a GtkPlug parents/unparents itself by an
in-process GtkSocket. This keeps the plug's GTK_TOPLEVEL flag in
sync with the global toplevel_list.
* gtk/gtkplug.c (gtk_plug_set_is_child): Call
_gtk_window_set_is_toplevel() to keep the toplevel list updated,
instead of just setting/unsetting the GTK_TOPLEVEL flag.
svn path=/trunk/; revision=22191
Matthias Clasen [Fri, 23 Jan 2009 05:54:02 +0000 (05:54 +0000)]
Fix typos
svn path=/trunk/; revision=22190
Matthias Clasen [Fri, 23 Jan 2009 05:51:25 +0000 (05:51 +0000)]
Bug 567761 – Spellfixes in GTK+ documentation
* gdk/x11/gdkselection-x11.c:
* gtk/gtktestutils.c: Fix typos in the docs.
svn path=/trunk/; revision=22189
Matthias Clasen [Fri, 23 Jan 2009 05:43:45 +0000 (05:43 +0000)]
Improve docs
svn path=/trunk/; revision=22188
Matthias Clasen [Fri, 23 Jan 2009 05:34:14 +0000 (05:34 +0000)]
Use a different approach to snapshotting that is in line with what is done
* gtk/gtkwidget.c (gtk_widget_get_snapshot): Use a different approach
to snapshotting that is in line with what is done in the client-side
windows branch, and that works for widgets regardless if they are
double-buffered or not. Patch by Alex Larsson.
* gdk/gdkwindow.c (_gdk_window_calculate_full_clip_region): Clip
to the parent.
svn path=/trunk/; revision=22187
Federico Mena Quintero [Fri, 23 Jan 2009 01:52:36 +0000 (01:52 +0000)]
GtkFileChooserEntry: handle slow folders by not autocompleting when the cursor is not at the end of the text
2009-01-22 Federico Mena Quintero <federico@novell.com>
* gtk/gtkfilechooserentry.c (autocomplete): Relax the assertion;
just do nothing if the folder is not loaded or if the cursor position
is not at the end of the text. A very slow-to-load folder can get
us into the latter state if the user starts typing first.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22186
Matthias Clasen [Fri, 23 Jan 2009 01:45:46 +0000 (01:45 +0000)]
Revert the previous change
svn path=/trunk/; revision=22185
Federico Mena Quintero [Fri, 23 Jan 2009 00:55:07 +0000 (00:55 +0000)]
GtkFileChooserEntry: fix the computation of 'complete but not unique' and appending a '/' to unique directory names
2009-01-22 Federico Mena Quintero <federico@novell.com>
Fix the computation of "complete but unique" in
GtkFileChooserEntry. Fix the case where "/" was not appended to a
unique directory name during explicit Tab completion.
* gtk/gtkfilechooserentry.c (maybe_append_separator_to_file):
Return whether anything was appended as well as the new string
itself.
(find_common_prefix): Oops, only turn on
is_complete_not_unique_ret if we had a unique match!
(append_common_prefix): If we appended a directory separator, we
*did* expand the common prefix, so we are not in the "nothing
inserted" case.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22184
Federico Mena Quintero [Fri, 23 Jan 2009 00:54:52 +0000 (00:54 +0000)]
Comments for translators on the file chooser entry's completion feedback
(start_explicit_completion): Add comments for translators, to
explain the purpose of the various feedback messages used during
completion.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22183
Federico Mena Quintero [Fri, 23 Jan 2009 00:54:37 +0000 (00:54 +0000)]
Pass refresh errors from the very bottom of the loading sequence up to the top
(start_loading_current_folder): Check if the folder to be loaded
is non-native for the local_only=TRUE case; if so, return an error
as we are configured to load only local folders.
(reload_current_folder): Pass on errors from
start_loading_current_folder(). Tighten the preconditions, as we
are sure that we can only receive non-NULL folder-files to load.
(refresh_current_folder_and_file_part): Pass on errors from
reload_current_folder(). At the very end, assert the invariant
described above.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22182
Federico Mena Quintero [Fri, 23 Jan 2009 00:54:22 +0000 (00:54 +0000)]
Factor out function to discard the loading process and the current folder file
(discard_loading_and_current_folder_file): Factor out function to
cancel the cancellable and discard the current_folder_file,
i.e. to reset the invariant to the "nothing valid is loaded" case.
(gtk_file_chooser_entry_dispose): Use
discard_loading_and_current_folder_file().
(reload_current_folder): Likewise.
(refresh_current_folder_and_file_part): Likewise, and ensure that
the error cases result in the invariant being held.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22181
Federico Mena Quintero [Fri, 23 Jan 2009 00:54:08 +0000 (00:54 +0000)]
Process the result of refreshing the folder during autocompletion
(start_autocompletion): Process the result from refresh...(). We
only do completion in the REFRESH_OK case. For the error cases,
we don't do anything, as this is autocompletion and must not
result in non-asked-for errors popping up.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22180
Federico Mena Quintero [Fri, 23 Jan 2009 00:53:53 +0000 (00:53 +0000)]
Don't handle errors when committing the completion
(commit_completion_and_refresh): Don't do anything with the result
of refresh...(), since this function doesn't get called during
completion-related interaction.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22179
Federico Mena Quintero [Fri, 23 Jan 2009 00:53:38 +0000 (00:53 +0000)]
Process the result of refreshing the folder during explicit completion
(start_explicit_completion): Process the result from
refresh...(). Here we present the actual feedback about only
being able to display local folders for local_only=TRUE.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22178
Federico Mena Quintero [Fri, 23 Jan 2009 00:53:23 +0000 (00:53 +0000)]
Return an error code when refreshing the entry from the user's input
2009-01-22 Federico Mena Quintero <federico@novell.com>
Return an error code when refreshing the entry from the user's
input. We use this in the completion code to know when completion
can't happen due to (for example) having a non-local URI in a file
chooser that is local_only=TRUE.
Also, we start maintaining an invariant that
chooser_entry->current_folder_file != NULL implies that:
* what the user entered is valid
* we are loading that folder (chooser_entry->load_folder_cancellable != NULL)
* or we are done loading that folder, or we have a handle
to it at least (chooser_entry->current_folder != NULL)
The invariant also says that all of the above are NULL (and
chooser_entry->current_folder_file == NULL) implies that the user
typed something invalid. This makes
_gtk_file_chooser_entry_get_current_folder() not able to return
an invalid folder.
* gtk/gtkfilechooserentry.c (RefreshStatus): New enum.
(refresh_current_folder_and_file_part): Return a RefreshStatus.
We filter out incomplete hostnames here (typing
"sftp://incompl[tab]" will error out), as well as completely
unparsable input.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22177
Gil Forcada Codinachs [Thu, 22 Jan 2009 22:51:51 +0000 (22:51 +0000)]
Updated Catalan translation by David Planella
svn path=/trunk/; revision=22176
Matthew Barnes [Thu, 22 Jan 2009 18:00:48 +0000 (18:00 +0000)]
Bug 568334 – Constructor properties for GtkAction
2009-01-22 Matthew Barnes <mbarnes@redhat.com>
Bug 568334 – Constructor properties for GtkAction
* gtk/gtkaction.c (gtk_action_class_init): Make all properties
G_PARAM_CONSTRUCT except "action-group".
svn path=/trunk/; revision=22175
Michael Natterer [Thu, 22 Jan 2009 15:15:40 +0000 (15:15 +0000)]
g_return_if_fail() on icon_name != NULL so we get a warning instead of a
2009-01-22 Michael Natterer <mitch@imendio.com>
* gtk/gtkicontheme.c (gtk_icon_theme_has_icon): g_return_if_fail()
on icon_name != NULL so we get a warning instead of a crash here.
svn path=/trunk/; revision=22174
Åsmund Skjæveland [Thu, 22 Jan 2009 10:03:39 +0000 (10:03 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-22 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22173
Tor Lillqvist [Thu, 22 Jan 2009 09:45:58 +0000 (09:45 +0000)]
Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps
2009-01-19 Tor Lillqvist <tml@iki.fi>
Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps
* io-bmp.c (OneLine32): Use unsigned variables so that we can
right-shift them without risk of sign extension. Don't "reverse"
the alpha value, actually storing 0xFF-alpha, but use it as such.
svn path=/trunk/; revision=22172
Matthias Clasen [Thu, 22 Jan 2009 00:35:16 +0000 (00:35 +0000)]
Updates
svn path=/trunk/; revision=22170
Matthias Clasen [Thu, 22 Jan 2009 00:34:30 +0000 (00:34 +0000)]
Don't show nonexisting windows
svn path=/trunk/; revision=22169
Matthias Clasen [Thu, 22 Jan 2009 00:33:54 +0000 (00:33 +0000)]
Implement select-by-words for selectable labels
svn path=/trunk/; revision=22168
Matthias Clasen [Wed, 21 Jan 2009 21:15:19 +0000 (21:15 +0000)]
Change the Caps Lock warning to the more neutral "Caps Lock is on".
009-01-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c: Change the Caps Lock warning to the more
neutral "Caps Lock is on". Requested by Wouter Bolsterlee
svn path=/trunk/; revision=22166
Tor Lillqvist [Wed, 21 Jan 2009 20:51:22 +0000 (20:51 +0000)]
Rename static local functions and variables to not have any unnecessary _
2009-01-21 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkcursor-win32.c: Rename static local functions and
variables to not have any unnecessary _ or _gdk_win32 prefix.
* gdk/win32/gdkcursor-win32.c (hcursor_from_type): Implement
creating a GDK_BLANK_CURSOR.
svn path=/trunk/; revision=22165
Matthias Clasen [Wed, 21 Jan 2009 20:09:49 +0000 (20:09 +0000)]
Bug 568552 – gtk_combo + gtk entry in invisible mode takes 100% cpu
* gtk/gtkentry.c: Fix an expose loop caused by raising windows out
of an expose handler. Also, don't show the 'Caps Lock' warning for
activated input methods, since that makes it permanently shown
for some locales. It should not be that necessary, now that we
do show preedit text even in password entries. Pointed out by
Frederic Crozat.
svn path=/trunk/; revision=22164
Federico Mena Quintero [Wed, 21 Jan 2009 19:12:58 +0000 (19:12 +0000)]
GtkFileChooser: only set local_only on the location entry if it exists
2009-01-21 Federico Mena Quintero <federico@novell.com>
* gtk/gtkfilechooserdefault.c (save_widgets_create): Set
local_only on the location entry when we create it...
(set_local_only): ... and set it here only if the location entry
exists.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22163
Yair Hershkovitz [Wed, 21 Jan 2009 18:36:14 +0000 (18:36 +0000)]
updated hebrew translation
svn path=/trunk/; revision=22162
Yair Hershkovitz [Wed, 21 Jan 2009 18:35:17 +0000 (18:35 +0000)]
updated hebrew translation
svn path=/trunk/; revision=22161
Changwoo Ryu [Wed, 21 Jan 2009 17:10:39 +0000 (17:10 +0000)]
Updated Korean translation
svn path=/trunk/; revision=22160
Changwoo Ryu [Wed, 21 Jan 2009 17:10:20 +0000 (17:10 +0000)]
Updated Korean translation
svn path=/trunk/; revision=22159
Marek Kasik [Wed, 21 Jan 2009 15:03:14 +0000 (15:03 +0000)]
Bug 561801 - "scheduled printing" doesn't function as expected
2009-01-21 Marek Kasik <mkasik@redhat.com>
Bug 561801 - "scheduled printing" doesn't function as expected
* gtk/gtkprintunixdialog: Add tooltip.
* modules/printbackends/cups/gtkprintbackendcups.c: Add conversion
from local time to utc time for scheduled printing.
svn path=/trunk/; revision=22158
Federico Mena Quintero [Wed, 21 Jan 2009 03:17:01 +0000 (03:17 +0000)]
Don't do completion in the middle of an incomplete hostname
Fix completion so it doesn't pop up for every character in a URI
hostname:
* gtk/gtkfilechooser.h (GtkFileChooserError): Add a
GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME.
* gtk/gtkfilesystem.c (_gtk_file_system_parse): Return an
"incomplete hostname" error if the user has not typed a full
hostname yet in an URI.
* gtk/gtkfilechooserentry.c (append_common_prefix): If we get an
incomplete hostname, just don't pop up an error, since that is a
transient state and the user doesn't need to be notified about it.
(refresh_current_folder_and_file_part): Don't revert to showing
the base folder if we have an incomplete hostname.
(reload_current_folder): Handle the passed folder being NULL, even
if we must force a reload. Also, reload the folder if we didn't
have a cancellable for it (i.e. we hadn't started to load it
before).
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22157
Federico Mena Quintero [Wed, 21 Jan 2009 03:16:46 +0000 (03:16 +0000)]
Add a local_only property to GtkFileChooserEntry
Patch by Carlos Garnacho <carlos@imendio.com> - add a local_only
property to GtkFileChooserEntry:
* gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Add a
local_only field.
(_gtk_file_chooser_entry_init): Default to local_only being true.
(start_explicit_completion): Don't allow completion of non-native
files if local_only is turned on.
(start_loading_current_folder): Don't start loading non-native
folders if local_only is turned on.
(_gtk_file_chooser_entry_set_local_only): New function.
(_gtk_file_chooser_entry_get_local_only): New function.
* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_set_local_only,
_gtk_file_chooser_entry_get_local_only): New prototypes.
* gtk/gtkfilechooserdefault.c (set_local_only): Set the local_only
property on the entry.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22156
Federico Mena Quintero [Wed, 21 Jan 2009 03:16:28 +0000 (03:16 +0000)]
Factor out code to discard the current_folder
Patch by Carlos Garnacho <carlos@imendio.com>:
* gtk/gtkfilechooserentry.c (discard_current_folder): New
function, factored out for when we need to get rid of the
current_folder.
(gtk_file_chooser_entry_dispose): Use discard_current_folder().
(finished_loading_cb): Fix prototype.
(load_directory_get_folder_callback): Discard the completion
store, as well as clearing the completion feedback, if we find an
error while loading the folder. Also, use
discard_current_folder().
(reload_current_folder): Use discard_current_folder().
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22155
Federico Mena Quintero [Wed, 21 Jan 2009 03:16:13 +0000 (03:16 +0000)]
bgo545980 - parse URIs in GtkFileChooserEntry
2009-01-15 Federico Mena Quintero <federico@novell.com>
http://bugzilla.gnome.org/show_bug.cgi?id=545980 -
GtkFileChooserEntry should handle URIs
* gtk/gtkfilesystem.c (_gtk_file_system_parse): Detect URI schemes
and parse the full URI.
(has_uri_scheme): New function, stolen from the old
gtkfilesystemgnomevfs.c.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22154
Matthias Clasen [Wed, 21 Jan 2009 02:53:45 +0000 (02:53 +0000)]
Add setters and getters for GtkAction properties, in preparation for bug
* gtk/gtk.symbols:
* gtk/gtkaction.[hc]: Add setters and getters for GtkAction
properties, in preparation for bug 560228.
svn path=/trunk/; revision=22153
Christian Dywan [Wed, 21 Jan 2009 00:03:00 +0000 (00:03 +0000)]
Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal on entry
2009-01-21 Christian Dywan <christian@twotoasts.de>
Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal
on entry editing
* gtk/gtkcombobox.c (gtk_combo_box_set_active): Return only if index
is set. Patch by Carl-Anton Ingmarsson.
svn path=/trunk/; revision=22152
Torsten Schönfeld [Tue, 20 Jan 2009 19:09:53 +0000 (19:09 +0000)]
Add a "Since: 2.16" tag to gtk_style_get.
svn path=/trunk/; revision=22151
Jorge Gonzalez Gonzalez [Tue, 20 Jan 2009 18:05:20 +0000 (18:05 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22150
Matthias Clasen [Tue, 20 Jan 2009 05:10:27 +0000 (05:10 +0000)]
Bug 565656 – Add marks to scales
Bug 565656 – Add marks to scales
* gtk/gtkrange.[hc]: Add internal api to define 'stop values'
that have a little resistance when dragging the slider over it.
* gtk/gtk.symbols:
* gtk/gtkscale.[hc] (gtk_scale_add_mark): New function to add
a 'mark' to a scale, which will draws a tick, plus optionally
some text, and makes the value a stop value.
(gtk_scale_clear_values): Removes all marks.
* tests/testscale.c: Test for marks on scales
* tests/Makefile.am: Integrate it
svn path=/trunk/; revision=22149
Matthias Clasen [Tue, 20 Jan 2009 02:45:19 +0000 (02:45 +0000)]
Replace several implementation of blank cursor setting by
* gtk/gtkentry.c:
* gtk/gtkfilechooserentry.c:
* gtk/gtktextview.c: Replace several implementation of
blank cursor setting by GDK_BLANK_CURSOR.
svn path=/trunk/; revision=22148
Matthias Clasen [Tue, 20 Jan 2009 02:27:57 +0000 (02:27 +0000)]
Update docs on blank cursors
svn path=/trunk/; revision=22147
Matthias Clasen [Tue, 20 Jan 2009 02:18:33 +0000 (02:18 +0000)]
Document GDK_BLANK_CURSOR
svn path=/trunk/; revision=22146
Matthias Clasen [Tue, 20 Jan 2009 02:15:59 +0000 (02:15 +0000)]
Cache cursors to avoid libXcursor theme lookup overhead.
Patch by David Alan Gilbert.
* gdk/gdkcursor.h: Add a GDK_BLANK_CURSOR cursor type.
* gdk/x11/gdkcursor-x11.c: Cache font cursors and named cursors.
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkcdisplay-x11.c: Remove cached cursors when a
display if finalized.
svn path=/trunk/; revision=22145
Jorge Gonzalez Gonzalez [Mon, 19 Jan 2009 18:13:19 +0000 (18:13 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22144
Åsmund Skjæveland [Mon, 19 Jan 2009 13:37:07 +0000 (13:37 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-19 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22143
Gabor Kelemen [Mon, 19 Jan 2009 10:43:19 +0000 (10:43 +0000)]
Translation updated.
2009-01-19 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=22142
Matthias Clasen [Mon, 19 Jan 2009 05:15:57 +0000 (05:15 +0000)]
Accept a type of TARGETS instead of ATOM, too. Based on a patch by Peng
* gtk/gtkselection.c (gtk_selection_data_get_targets): Accept
a type of TARGETS instead of ATOM, too. Based on a patch by
Peng Wu.
svn path=/trunk/; revision=22141
Matthias Clasen [Mon, 19 Jan 2009 05:01:35 +0000 (05:01 +0000)]
Correct some copy-and-paste mistakes in keybinding signal docs. Pointed
* gtk/gtkentry.c:
* gtk/gtklabel.c:
* gtk/gtktextview.c: Correct some copy-and-paste mistakes in
keybinding signal docs. Pointed out by Pascal Terjan.
svn path=/trunk/; revision=22140
Matthias Clasen [Sun, 18 Jan 2009 20:22:10 +0000 (20:22 +0000)]
Add properties and getters for icon tooltips.
* gtk/gtk.symbols:
* gtk/gtkentry.[hc]: Add properties and getters for icon tooltips.
svn path=/trunk/; revision=22139
Matthias Clasen [Sun, 18 Jan 2009 19:09:26 +0000 (19:09 +0000)]
Fix the example
svn path=/trunk/; revision=22138
Matthias Clasen [Sun, 18 Jan 2009 19:00:18 +0000 (19:00 +0000)]
Solve the msgctxt problem a bit more elegantly, and add some hints about
* gtk/gtkstock.c: Solve the msgctxt problem a bit more
elegantly, and add some hints about this to the docs of
gtk_stock_set_translate_func. Proposed by Christian Persch
svn path=/trunk/; revision=22137
Matthias Clasen [Sun, 18 Jan 2009 18:41:57 +0000 (18:41 +0000)]
Make xgettext recognize and extract NC_()
* Makefile.in.in: Make xgettext recognize and extract NC_()
svn path=/trunk/; revision=22136
Matthias Clasen [Sun, 18 Jan 2009 18:40:06 +0000 (18:40 +0000)]
Reinstate separate translation contexts for navigation and media labels
* gtk/gtkstock.c: Reinstate separate translation contexts for
navigation and media labels (these were lost in the transition
to msgctxt. Pointed out by Gabor Kelemen.
svn path=/trunk/; revision=22135
Matthias Clasen [Sun, 18 Jan 2009 16:07:00 +0000 (16:07 +0000)]
Use the last chance to get the api right, and rename things for
* gtk/gtk.symbols:
* gtk/gtkentry.[hc]: Use the last chance to get the api right,
and rename things for consistency, requested by Murray Cumming.
In detail,
gtk_entry_get_stock -> gtk_entry_get_icon_stock
gtk_entry_get_pixbuf -> gtk_entry_get_icon_pixbuf
gtk_entry_get_gicon -> gtk_entry_get_icon_gicon
gtk_entry_get_storage_type -> gtk_entry_get_icon_storage_type
::prelight -> ::icon-prelight
::pixbuf-primary -> ::primary-icon-pixbuf
::stock-primary -> ::primary-icon-stock
::icon-name-primary -> ::primary-icon-name
::gicon-primary-> ::primary-icon-gicon
::storage-type-primary -> ::primary-icon-storage-type
::activatable->primary -> ::primary-icon-activatable
::sensitive-primary -> ::primary-icon-sensitive
(and similar for secondary properties)
svn path=/trunk/; revision=22134
Matthias Clasen [Sun, 18 Jan 2009 15:57:06 +0000 (15:57 +0000)]
Use "const gchar*" in new tooltip api. Pointed out by Torsten Schoenfeld.
* gtk/gtkstatusicon.h: Use "const gchar*" in new tooltip api.
Pointed out by Torsten Schoenfeld.
svn path=/trunk/; revision=22133
Matthias Clasen [Sun, 18 Jan 2009 15:50:29 +0000 (15:50 +0000)]
End the search if the window is closed.
* demos/gtk-demo/search_entry.c: End the search if the window
is closed.
* demos/gtk-demo/search_entry.c:
* demos/gtk-demo/entry_completion.c: Group the entry examples
under "Entry".
svn path=/trunk/; revision=22132
Åsmund Skjæveland [Sun, 18 Jan 2009 15:47:50 +0000 (15:47 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-18 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22131
Christian Dywan [Sun, 18 Jan 2009 15:16:14 +0000 (15:16 +0000)]
Remove a redundant include from gtktoolbar.c
2009-01-18 Christian Dywan <christian@twotoasts.de>
Remove a redundant include from gtktoolbar.c
* gtk/gtktoolbar.c: Remove second inclusion of gtktoolbar.h.
Patch by Enrico Tröger.
svn path=/trunk/; revision=22130
Åsmund Skjæveland [Sun, 18 Jan 2009 14:36:17 +0000 (14:36 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-18 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22129
Gabor Kelemen [Sat, 17 Jan 2009 07:08:41 +0000 (07:08 +0000)]
Translation updated.
2009-01-17 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=22128
Cody Russell [Fri, 16 Jan 2009 16:30:18 +0000 (16:30 +0000)]
Bug 567944 – [Win32] Sorted treeview columns can be unreadable
2009-01-16 Cody Russell <bratsche@gnome.org>
Bug 567944 – [Win32] Sorted treeview columns can be unreadable
* modules/engines/ms-windows/msw_style.c: Draw selected treeview
cells according to treeview focus, but ignore whether it is in
a sorted column or not. Otherwise the intersection of a selected
row and a sorted column looks very strange if the treeview does
not have focus.
svn path=/trunk/; revision=22126
Daniel Elstner [Fri, 16 Jan 2009 15:02:06 +0000 (15:02 +0000)]
Remove the namespace prefix from functions defined locally only. Clean up
* modules/input/gtkimcontextmultipress.[ch]: Remove the namespace
prefix from functions defined locally only. Clean up the code and
change indentation to match the GTK+ coding style.
(_GtkImContextMultipress::key_sequences): Replace array of pointers
by GHashTable. Adapt the implementation accordingly.
(passthrough_enabled_for_window): Remove. The passthrough hack is
no longer necessary thanks to the recently introduced "im-module"
property of GtkEntry and GtkTextView.
(load_config): Rework to implement an improved configuration file
format. Just fetch all keys of the group instead of expecting the
keys to be named a certain way. This also allows interpreting the
config key itself as the GDK key name to bind the character sequence
to, thereby making it independent of the sequence itself.
* modules/input/im-multipress.conf: New example configuration using
the new syntax. The example sequences are now bound to the numeric
keypad and imitate the behavior of a standard mobile phone.
svn path=/trunk/; revision=22125
Gabor Kelemen [Thu, 15 Jan 2009 19:12:38 +0000 (19:12 +0000)]
Translation updated.
2009-01-15 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=22124
Murray Cumming [Thu, 15 Jan 2009 16:53:27 +0000 (16:53 +0000)]
documentation description: Mention the various properties and the
2009-01-15 Murray Cumming <murrayc@murrayc.com>
* gtk/gtkimcontext.c: documentation description: Mention the various
properties and the environment variable, with links to their
documentation.
* gtk/gtksettings.c:
* gtk/gtktextview.c: Make the im-module property documentation more
expansive.
svn path=/trunk/; revision=22123
Åsmund Skjæveland [Thu, 15 Jan 2009 16:26:18 +0000 (16:26 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-15 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22122
Åsmund Skjæveland [Thu, 15 Jan 2009 11:42:41 +0000 (11:42 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-15 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22121
Diego Escalante Urrelo [Thu, 15 Jan 2009 09:51:07 +0000 (09:51 +0000)]
Don't assume actions and results have equal height
This causes negative size requisitions when results are more than one
line tall.
* gtk/gtkentrycompletion.c: change the formula used to calculate
the size of the completion popup.
svn path=/trunk/; revision=22120
Federico Mena Quintero [Wed, 14 Jan 2009 20:19:10 +0000 (20:19 +0000)]
Load/save the file chooser's size
* gtk/gtkfilechooserdefault.c (save_dialog_geometry): New function.
(settings_save): Save the dialog's geometry.
(gtk_file_chooser_default_get_default_size): Load the geometry
from the settings. If it was already saved, return that instead
of computing an ad-hoc size.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22119